package com.mark.springbootvideo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author: MARK
 * @Date: 2019/9/8 09:44
 * @Version: 1.0.0
 * @Description: 微信配置类
 */
@Configuration
@PropertySource(value = "classpath:application.yml")
public class WeChatConfig {
    /**
     * @return
     * @create: 2019/9/8
     * @author MARK
     * @Description: 公众号appid
     */
    @Value("${wxpay.appid}")
    private String appId;

    /**
     * @return
     * @create: 2019/9/8
     * @author MARK
     * @Description: 公众号秘钥
     */
    @Value("${wxpay.appsecret}")
    private String appsecret;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }
}
